public class exception
{
	public void exceptionMultiCatch()
	{
		int i=1,j=0;
		int[] array = new int[5];
		double[] list = new double[10];
		try
		{
			int sixthElement = array[4];
			double element= list[19];
			int result = i/j;

		}
		catch(ArithmeticException gg)
			{
				System.out.println("divded by zero error");
			}
		catch(ArrayIndexOutOfBoundsException ex)
			{
				System.out.println("You are trying to access the out of boumds element");
			}
		catch(IndexOutOfBoundsException ex)
			{
				System.out.println("You are trying to access the out of bounds element in list");
			}
		catch(IOException ab)
			{
				System.out.println("IO package exception");
			} 
	}
	
	public static void main(String[] args)
	{
	exception obj=new exception();
	obj.exceptionMultiCatch();
	}
}

